package com.zzyl.mapper;


import com.zzyl.entity.Member;
import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
public interface MemberMapper {

    Member selectById(@Param("id") Long id);


    List<Member> selectAll();


    void insert(Member member);


    void update(Member member);


    void deleteById(@Param("id") Long id);

    @Select("select * from member where open_id=#{openId}")
    Member selectByOpenId(String openId);
}

